import { router } from "@/path/router";
//"跳转类型，空不跳转，article：文章，car：车源 <stri
export function toDetail(itm) {
  if (!itm.path_type) return
  if (itm.path_type === "article") {
    router.navigate({ url: "/pages/tool/article/index" }, {
      data: {
        richTextId: itm.path
      }
    })
    return
  }
  if (itm.path_type === "car") {
    router.navigate({ url: "/pages/car-detail/index" }, {
      data: {
        id: itm.path
      }
    })
    return
  }
}


